@layout("/common/_dialog.html",{plugins:["laydate","sweet-alert","layer"],js:["/assets/modular/system/car/car_add.js","/assets/modular/system/modify/modify_add.js","/assets/modular/system/ticket/ticket_add.js"]}){
<div class="container-fluid">
    <form id="carForm" \@submit="submitForm">
        <div class="row">
            <div class="col-9">
                <div class="form-group">
                    <h5>类型 <span class="text-danger">*</span></h5>
                    <div class="controls">
                        <input v-model="carType" type="text" class="form-control">
                    </div>
                </div>
                <div class="form-group">
                    <h5>颜色 <span class="text-danger">*</span></h5>
                    <div class="controls">
                        <input v-model="carColor" type="text" class="form-control">
                    </div>
                </div>
                <div class="form-group">
                    <h5>保值 <span class="text-danger">*</span></h5>
                    <div class="controls">
                        <input v-model="carPrice" type="text" class="form-control">
                    </div>
                </div>
                <div class="form-group">
                    <h5>租赁价格 <span class="text-danger">*</span></h5>
                    <div class="controls">
                        <input v-model="rentMoneyOneDay" type="text" class="form-control">
                    </div>
                </div>
                <div class="form-group">
                    <h5>是否通过最新年检</h5>
                    <div class="controls">
                        <select v-model="carInspection" class="form-control">
                            <option value="">请选择</option>
                            <option value="1">是</option>
                            <option value="0">否</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <h5>已行驶里程<span class="text-danger">*</span></h5>
                    <div class="controls">
                        <input v-model="carMileage" type="text" class="form-control">
                    </div>
                </div>
                <input  type="hidden" id="moId" class="form-control">
                <input  type="hidden" id="tiId" class="form-control">
                <!--<div class="form-group" >
                    <h5>维修记录<span class="text-danger">*</span></h5>
                    <div class="controls">
                        <input v-model="modifyId" type="text" class="form-control">
                    </div>
                </div>-->
<!--
                <input v-model="ticketId" type="hidden" id="ticketId" class="form-control">
-->
            </div>
            <div class="col-3">
                <button type="button" class="btn btn-primary waves-effect m-l-5" onclick="modify.openModifyCar()">
                    <i class="fa fa-edit"></i>&nbsp;维修记录
                </button>
                <button type="button" class="btn btn-primary waves-effect m-l-5" onclick="ticket.openTicketCar()">
                    <i class="fa fa-edit"></i>&nbsp;罚单记录
                </button>
            </div>
        </div>
        <div class="row">
            <div class="col-6">
                <div class="text-xs-right">
                    <button class="btn btn-info normal-button-width" \@click="ensure">提交</button>
                    <button class="btn btn-inverse normal-button-width m-l-10" \@click="close">取消</button>
                </div>
            </div>
        </div>
    </form>
</div>
@}
